package com.dynabook.ems.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @TableName ems_bom_detail
 */
@TableName(value ="ems_bom_detail")
@Data
public class EmsBomDetail implements Serializable {
    /**
     * 主键id
     */
    @ApiModelProperty("主键ID")
    @TableId(value = "id",type= IdType.ASSIGN_ID)
    private Long id;

    /**
     * 样品型号
     */
    @ApiModelProperty("样品型号")
    @TableField(value = "model_type")
    private String modelType;

    /**
     * 样品名称
     */
    @ApiModelProperty("样品名称")
    @TableField(value = "model_name")
    private String modelName;

    /**
     * 样品数量
     */
    @ApiModelProperty("样品数量")
    @TableField(value = "model_number")
    private Integer modelNumber;

    /**
     * 单位
     */
    @ApiModelProperty("单位")
    @TableField(value = "model_unit")
    private String modelUnit;

    /**
     * 样品类型
     */
    @ApiModelProperty("样品类型")
    @TableField(value = "model_category")
    private String modelCategory;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    @TableField(value = "remark")
    private String remark;


    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField(value = "insert_time")
    private LocalDateTime insertTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    @TableField(value = "update_time")
    private LocalDateTime updateTime;
    
    /**
     * 逻辑删除字段
     */
    @ApiModelProperty("逻辑删除字段")
    @TableField(value = "is_delete")
    @TableLogic
    private Integer isDelete;

    /**
     * 逻辑删除字段
     */
    @ApiModelProperty("详情状态")
    @TableField(value = "detail_status")
    private Integer detailStatus;

    /**
     * 样品细分
     */
    @ApiModelProperty("样品细分")
    @TableField(value = "category")
    private String category;

    /**
     * 样品总数
     */
    @ApiModelProperty("样品总数")
    @TableField(value = "total_num")
    private String totalNum;

    /**
     * 工作订单编号
     */
    @ApiModelProperty("工单订单编号")
    @TableField(value = "work_order_number")
    private String workOrderNumber;


    @ApiModelProperty("是否是第一条数据")
    @TableField(value = "is_first")
    private Integer isFirst;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}